﻿#ifndef MYCUSTOMPLOT_H
#define MYCUSTOMPLOT_H

#include <QWidget>
#include "qcustomplot.h"
#include <QRect>

class MyCustomPlot : public QCustomPlot
{
    Q_OBJECT
public:
    explicit MyCustomPlot(QWidget *parent = nullptr);
    void setInitViewRect(const QRect& rect);
signals:

protected:
    void resizeEvent(QResizeEvent *event) override;
public slots:
private:
    QRect initViewRect_;
};

#endif // MYCUSTOMPLOT_H
